package db4o;

import pojo.Device;
import pojo.EDeviceState;

public class DeviceModificator extends DBManager {

	public void changeStateOfDevice(EDeviceState state, Integer id) {
		DeviceRetriver ret = new DeviceRetriver();
		Device d = ret.fetchDevice(id);
		d.setState(state);
		super.getDbManager().store(d);
	}
}
